<?php /* Smarty version 2.6.20, created on 2016-07-19 15:23:07
         compiled from share_log_list.htm */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>分享数据</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../module/inventory/css/admin/index.css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../module/inventory/scripts/yui/yahoo-dom-event/yahoo-dom-event.js" ></script>
<script type="text/javascript" src="../module/inventory/scripts/yui/dragdrop/dragdrop-min.js" ></script>
<script type="text/javascript" src="../script/jquery.validation.min.js"></script>
<script src="../script/my_lightbox.js" language="javascript"></script>

<script type="text/javascript">
$(function(){
    /* 全选 */
     $('.checkall').click(function(){
        var _self = this;
        $('.checkitem').each(function(){
            if (!this.disabled)
            {
                $(this).attr('checked', _self.checked);
            }
        });
        $('.checkall').attr('checked', this.checked);
    }); 
    
    $("#submits").click(function(){
    	$('#export_form').submit();
    })
    
    
});


</script>
</head>
<body>
    <div class="container">
        <div class="flow">
            <div class="itemtitle">
                <h3>分享数据</h3>
                <ul>
                    <li><a href="#"><span>管理</span></a></li>
                </ul>
            </div>
        </div>
        <div class="h35"></div>  
	    <table class="select_table">
        <tbody>
            <tr>
                <form method="post" target="export_iframe" id="export_form" action="">
                	<input type="hidden" value="export" name="act"/>
                </form>
                <iframe src="" style="display:none;" id="export_iframe" name="export_iframe"></iframe>
                <a href="javascript:;" id="submits" style="float:right;"><span>导出EXCEL</span></a>
            </tr>
            
        </tbody>
    	</table>
        <form action="" method="post">
        <table class="table">
            <thead>
                <tr>
                    <th class="partition" colspan="99">列表</th>
                </tr>
            </thead>
            <tbody>
                <tr class="header">
                    <th width="50">ID</th>
                    <th>链接</th>
                    <th>分享者</th>
                    <th>分享者等级</th>
                    <th>上级名称</th>
                    <th width="150">分享类型</th>
                    <th width="150">分享时间</th>
                </tr>
                <?php $_from = $this->_tpl_vars['de']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
                <tr>
                    <td><?php echo $this->_tpl_vars['list']['id']; ?>
</td>
                    <td><?php echo $this->_tpl_vars['list']['shareUrl']; ?>
</td>
                    <td><?php echo $this->_tpl_vars['list']['userName']; ?>
</td>
                    <td><?php if ($this->_tpl_vars['list']['level'] == 1): ?>首席<?php elseif ($this->_tpl_vars['list']['level'] == 2): ?>红人<?php else: ?>吃货<?php endif; ?></td>
                    <td><?php echo $this->_tpl_vars['list']['parentName']; ?>
</td>
                    <td><?php if ($this->_tpl_vars['list']['shareId'] == 1): ?>分享到朋友圈<?php elseif ($this->_tpl_vars['list']['shareId'] == 2): ?>发送给朋友<?php elseif ($this->_tpl_vars['list']['shareId'] == 3): ?>分享到QQ<?php else: ?>分享到微博<?php endif; ?></td>
                    <td><?php echo $this->_tpl_vars['list']['shareTime']; ?>
</td>
                </tr>
                <?php endforeach; else: ?>
                <tr>
                    <td class="norecord" colspan="99"><i></i><span>暂无符合条件的数据记录</span></td>
                </tr>
                <?php endif; unset($_from); ?>
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="99">
                        <div class="page"><?php echo $this->_tpl_vars['de']['page']; ?>
</div>
                    </td>
                </tr>
            </tfoot>
        </table>
        </form>
    </div>
</body>
</html>